package main.resources.controller.command.option;

import main.resources.controller.command.Command;
import main.resources.controller.dao.moodle.MdlChoiceOptionDao;
import main.resources.exceptions.DaoException;
import main.resources.model.entity.moodle.MdlChoiceOption;

public class ChoiceOptionEditCommand implements Command {

	private MdlChoiceOption option;
	
	public ChoiceOptionEditCommand(MdlChoiceOption option) {
		this.option = option;
	}

	@Override
	public void execute() throws DaoException {
		MdlChoiceOptionDao.getInstance().edit(option);
	}

}
